package com.haieros.www.purerunshowsystem;

import java.io.Serializable;

/**
 * Created by W520 on 2017/12/5.
 */

public class RunDataModel implements Serializable{
    /**
     * data_type : use
     * device_id : AAAAA2017112000200001
     * device_type : treadmill
     * msg : {"gradient":"0","heart_beat":"70","calorie":"4","speed":"0.0","distance":"0","run_duration":"5224","blance":"17.6"}
     */

    private String data_type;
    private String device_id;
    private String device_type;
    private MsgBean msg;

    public String getData_type() {
        return data_type;
    }

    public void setData_type(String data_type) {
        this.data_type = data_type;
    }

    public String getDevice_id() {
        return device_id;
    }

    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }

    public String getDevice_type() {
        return device_type;
    }

    public void setDevice_type(String device_type) {
        this.device_type = device_type;
    }

    public MsgBean getMsg() {
        return msg;
    }

    public void setMsg(MsgBean msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "RunDataModel{" +
                "data_type='" + data_type + '\'' +
                ", device_id='" + device_id + '\'' +
                ", device_type='" + device_type + '\'' +
                ", msg=" + msg +
                '}';
    }

    public static class MsgBean implements Serializable{
        /**
         * gradient : 0
         * heart_beat : 70
         * calorie : 4
         * speed : 0.0
         * distance : 0
         * run_duration : 5224
         * blance : 17.6
         */

        private String gradient;
        private String heart_beat;
        private String calorie;
        private String speed;
        private String distance;
        private String run_duration;
        private String blance;

        public String getGradient() {
            return gradient;
        }

        public void setGradient(String gradient) {
            this.gradient = gradient;
        }

        public String getHeart_beat() {
            return heart_beat;
        }

        public void setHeart_beat(String heart_beat) {
            this.heart_beat = heart_beat;
        }

        public String getCalorie() {
            return calorie;
        }

        public void setCalorie(String calorie) {
            this.calorie = calorie;
        }

        public String getSpeed() {
            return speed;
        }

        public void setSpeed(String speed) {
            this.speed = speed;
        }

        public String getDistance() {
            return distance;
        }

        public void setDistance(String distance) {
            this.distance = distance;
        }

        public String getRun_duration() {
            return run_duration;
        }

        public void setRun_duration(String run_duration) {
            this.run_duration = run_duration;
        }

        public String getBlance() {
            return blance;
        }

        public void setBlance(String blance) {
            this.blance = blance;
        }

        @Override
        public String toString() {
            return "MsgBean{" +
                    "gradient='" + gradient + '\'' +
                    ", heart_beat='" + heart_beat + '\'' +
                    ", calorie='" + calorie + '\'' +
                    ", speed='" + speed + '\'' +
                    ", distance='" + distance + '\'' +
                    ", run_duration='" + run_duration + '\'' +
                    ", blance='" + blance + '\'' +
                    '}';
        }
    }

    /**
     * msg : {"gradient":"10","heart_rate":"70","calorie":"4","speed":"10","distance":"10","run_duration":"10"}
     */
//{"data_type":"use","device_id":"AAAAA2017112000200001","device_type":"treadmill","msg":{"gradient":"0","heart_beat":"70","calorie":"4","speed":"0.0","distance":"0","run_duration":"5224","blance":"17.6"}}

}
